package com.example.administrator.wallet.view.activity.find.OffSiteTransactions;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.example.administrator.wallet.R;
import com.example.administrator.wallet.view.fragment.TransactionFragment;

public class OffSiteTransactionsActivity extends AppCompatActivity {
    private android.support.v4.app.FragmentManager manager;
    private android.support.v4.app.FragmentTransaction transaction;
    private TransactionFragment transactionFragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_off_site_transactions);

        manager = getSupportFragmentManager();
        transaction = manager.beginTransaction();

        if (transactionFragment == null) {
            transactionFragment = new TransactionFragment();
            transaction.add(R.id.fragment, transactionFragment).show(transactionFragment);
        } else {
            transaction.show(transactionFragment);
        }
        transaction.commit();
    }
}
